//
//  ShowVideoViewController.h
//  WXXNews
//
//  Created by WangXiaoXiang on 13-6-28.
//  Copyright (c) 2013年 WangXiaoXiang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CreateButton.h"
#import "PlayerView.h"

#define kCenter_X _playBar.bounds.size.width/2
#define kCenter_Y _playBar.bounds.size.height/2
//跟中间的间隔
#define kButton_S 15

@class ShowVideoViewController;
@protocol ShowVideoVCDelegate <NSObject>

-(void)showVideoVCDismiss:(ShowVideoViewController *)showVideoVC;

@end

@interface ShowVideoViewController : UIViewController
{
    //播放条
    UIView *_playBar;
    //暂停按钮
    UIButton *_pauseButton;
    //播放按钮
    UIButton *_playButton;
    //停止
    UIButton *_stopButton;
    //进度条
    UISlider *_slider;
    //关闭窗口
    UIButton *_backButton;
    //播放视频源地址
    NSString *_videoUrl;
    
    BOOL isPlaying;
    
    //播放界面
    PlayerView *_playerView;
    
    AVPlayer *_player;
}
@property (nonatomic,assign) id<ShowVideoVCDelegate> delegate;
-(id)initWithVideoURL:(NSString *)url;
@end
